
var canvas = new fabric.Canvas('main');
var rect = new fabric.Rect({
    left: 100,
    top: 100,
    fill: 'red',
    width: 100,
    height: 100
})

var circle = new fabric.Circle({
    left: 200,
    top: 200,
    fill: 'green',
    radius: 50
})

var triangle = new fabric.Triangle({
    left: 300,
    top: 300,
    fill: 'blue',
    width: 100,
    height: 100
})




canvas.add(rect, circle, triangle);